/**
 * @Description:
 * @Author: saqqdy
 * @LastEditors: saqqdy
 * @Date: 2021-07-18 00:39:35
 * @LastEditTime: 2021-07-18 12:01:24
 */
export const arrayFilterEmpty = array => array.filter(x => !!x)

export const pathRewrite = (localUrl, remoteUrl) => path => path.replace(new RegExp(localUrl.replace('/', '\\/'), 'g'), remoteUrl)
